package za.co.felixsol.sf.dxf.reader.tests;

import java.io.FileInputStream;
import java.io.InputStream;

import za.co.felixsol.sf.dxf.reader.DxfProgram;
import za.co.felixsol.sf.dxf.reader.io.DxfReader;
import za.co.felixsol.sf.dxf.reader.io.DxfReaderFactory;

public class ReadTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		try {
			InputStream dxfStream = new FileInputStream(
					"C:/e/designs/GCode/Protractor/protractor-big-ascii.dxf");
			try {
				DxfReader dxfReader = DxfReaderFactory.getDxfReader(dxfStream);
				DxfProgram dxfProgram = dxfReader.readProgram();
			} finally {
				dxfStream.close();
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
		System.out.println("Done!");

	}

}
